﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class workflow_StartWorkflow : KPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnRP_Click(object sender, EventArgs e)
    {
        ERR.UIException ex = new ERR.UIException();
        string ProjectCode;
        ProjectCode = WF.StartWorkflow(ENU.WFCode.RP, 1, 1, ref ex);
        if (ex.Message.Length>0)
        {
            Response.Write("ERROR: " +ex.Message);
        }
        else
        {
            Response.Write("Workflow Started: " + ProjectCode);
        }
        
    }
}